草庐IT

node.js - 将 Meteor 和 MongoDB 部署到 Heroku

全部标签

ruby - Heroku 不为 rails 4 预编译 Assets

这里的文档说heroku在Rails4中的部署期间具有预编译Assets。但是,我没有看到预编译Assets消息。Usingthin(1.6.1)Usingtwitter-bootstrap-rails(2.2.8)Usinguglifier(2.3.1)Usingwill_paginate(3.0.4)Yourbundleiscomplete!Itwasinstalledinto./vendor/bundleBundlecompleted(1.37s)Cleaningupthebundlercache.----->Writingconfig/database.ymltoreadfro

ruby-on-rails - Heroku Drop Table Rails 帮助

我正在使用RubyonRails,我不再需要我的表Order,所以我使用SQLite管理器删除了它。我怎样才能在heroku中删除表?编辑我收到错误db/migrate/20110806052256_droptableorders.rb:10:syntaxerror,unexpectedkeyword_end,expecting$end当我运行命令时classDropTableOrder 最佳答案 如果你不想创建一个迁移来删除表并且不能回滚以前的迁移,因为你不想丢失迁移后创建的表中的数据,你可以在heroku控制台上使用以下命令来放

ruby - Capistrano - 无法部署我的 database.yml

当我尝试使用capistrano部署我的应用程序时,我会收到此错误:failed:"sh-c'cp/var/www/my_app/releases/20120313115055/config/database.staging.yml/var/www/my_app/releases/20120313115055/config/database.yml'"onIP_ADDR我的database.yml即空的,database.staging.yml:production:adapter:mysql2encoding:utf8reconnect:falsedatabase:my_dbpool

ruby-on-rails - Heroku 上的不兼容编码正则表达式匹配(ASCII-8BIT 正则表达式与 UTF-8 字符串)

我有一个Rails应用程序,我在其中使用基于正则表达式的规则对事务进行分类。在我的seeds.rb中,我创建了一些类别和规则,然后从CSV文件(也是utf8编码)导入交易并允许对它们进行分类。这个过程在我的开发机器上运行良好,但是当我在Heroku上运行它时,我得到:incompatibleencodingregexpmatch(ASCII-8BITregexpwithUTF-8string)我正在运行CedarStack,Rails2.3.15。我放了#encoding:utf-8在我所有源文件的顶部,我在我的应用程序配置中将编码设置为utf-8,所以我不确定还有什么可能导致此问题。

ruby - Heroku 应用程序崩溃并显示 'libruby.so.1.9: cannot open shared object file'

这个问题不太可能帮助任何future的访问者;它只与一个小的地理区域、一个特定的时间点或一个非常狭窄的情况有关,这些情况并不普遍适用于互联网的全局受众。为了帮助使这个问题更广泛地适用,visitthehelpcenter.关闭10年前。我在部署这个应用程序时从未遇到过问题,但我刚刚推送,现在我遇到了这个奇怪的错误,它在堆栈中足够深,甚至没有被发送到Airbrake。我觉得这可能是Heroku的问题,可能与https://status.heroku.com/incidents/450有关。?你怎么看?2012-10-14T08:40:31+00:00heroku[web.1]:State

ruby-on-rails - Json -v 1.8.6 不会作为 capistrano 部署的一部分安装

这个问题已在stackoverflow和其他论坛上被问过几次,但我似乎无法通过我遇到的这个错误。当我运行capistranoproductiondeploy时,我在部署过程中收到此错误。capproductionbundler:install00:00bundler:install01bundleinstall--path/var/local/blackduck_flock_rails/shared/bundle--withoutdevelopmenttest--deployme…01Anerroroccurredwhileinstallingjson(1.8.6),andBundle

ruby-on-rails - Rails Heroku 服务器回形针 Amazon S3 - AWS::S3::Errors::RequestTimeout

当我用附加图像保存我的konkurrencer模型时,我在Heroku上收到错误,但在我的本地服务器上没有。.我的heroku日志:←[36m2012-04-01T17:45:37+00:00app[web.1]:←[0mStartedPOST"/admin/konkurrencers"forMYIPat2012-04-0110:45:37-0700←[33m2012-04-01T17:46:01+00:00heroku[router]:←[0mPOSTwww.konkurrencerher.dk/admin/konkurrencersdyno=web.1queue=0wait=0ms

ruby-on-rails - 为什么 Rake 任务增强在我的本地环境和部署到 Heroku Cedar 时有所不同?

我在lib/tasks/foo.rake中有这个:Rake::Task["assets:precompile"].enhancedoprint">>>>>>>>hellofromprecompile"endRake::Task["assets:precompile:nondigest"].enhancedoprint">>>>>>>>hellofromprecompile:nondigest"end当我在本地运行rakeassets:precompile时,两条消息都会被打印出来。当我推送到heroku时,只打印非摘要消息。然而,accordingtothebuildpack,推送正在

ruby - Fedora 17 上的 Heroku Toolbelt

我正在尝试执行教程的heroku设置部分http://ruby.railstutorial.org/.但是在https://toolbelt.heroku.com/,我注意到Fedora没有.rpm,所以我尝试分别安装Foreman和HerokuCLI。Foreman和Git安装正常,但我在使用HerokuCLI时遇到问题。当我尝试做的时候:$yuminstallrubygem-heroku然后简单地做$heroku我得到错误:/usr/share/rubygems/rubygems/dependency.rb:247:in`to_specs':Couldnotfindheroku(>

ruby-on-rails - Heroku ruby​​ buildpack 错误 - 未定义的局部变量或方法 `install_language_pack_gems'

我刚刚将我的Rails3.2.16应用程序的ruby​​版本从1.9.2升级到2.0.0,并且在本地一切正常。但是,当尝试推送到Heroku时,编译失败。它检测ruby​​版本,开始安装依赖项,然后崩溃:----->CompilingRuby/Rails----->UsingRubyversion:ruby-2.0.0----->Installingdependenciesusing1.5.2Rubyversionchangedetected.Clearingbundlercache.Old:ruby1.9.3p484(2013-11-22revision43786)[x86_64-l